package com.rk.kbk.model;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.rk.kbk.common.DateJsonDeserializer;
import com.rk.kbk.common.DateJsonSerializer;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import javax.persistence.*;

/**
 * @WebUsersubmit
 * @(web_usersubmit)
 * @version : Ver 1.0
 */
@Entity
public class WebUsersubmit implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * @备注:
	 * @字段:id BIGINT(19)
	 */
	@Id
	@GeneratedValue(strategy= GenerationType.IDENTITY)
	@GenericGenerator(name="auto-identity",strategy="identity")
	@Column(updatable = false, columnDefinition="BIGINT(19) COMMENT ''")
	private Long id;

	/**
	 * @备注:联系人
	 * @字段:real_name VARCHAR(255)
	 */
	@Column(columnDefinition="VARCHAR(255) COMMENT '联系人'")
	private String realName;

	/**
	 * @备注:店铺名称
	 * @字段:nick_name VARCHAR(255)
	 */
	@Column(columnDefinition="VARCHAR(255) COMMENT '店铺名称'")
	private String nickName;

	/**
	 * @备注:
	 * @字段:province VARCHAR(255)
	 */
	@Column(columnDefinition="VARCHAR(255) COMMENT ''")
	private String province;

	/**
	 * @备注:
	 * @字段:ciry VARCHAR(255)
	 */
	@Column(columnDefinition="VARCHAR(255) COMMENT ''")
	private String city;

	/**
	 * @备注:
	 * @字段:county VARCHAR(255)
	 */
	@Column(columnDefinition="VARCHAR(255) COMMENT ''")
	private String county;

	/**
	 * @备注:
	 * @字段:address_detail VARCHAR(255)
	 */
	@Column(columnDefinition="VARCHAR(255) COMMENT ''")
	private String addressDetail;

	/**
	 * @备注:
	 * @字段:ride_type VARCHAR(255)
	 */
	@Column(columnDefinition="VARCHAR(255) COMMENT ''")
	private String rideType;

	/**
	 * @备注:用户类型1骑手2商户
	 * @字段:user_type INT(10)
	 */
	@Column(columnDefinition="INT(10) COMMENT '用户类型1骑手2商户'")
	private Integer userType;

	private java.lang.String phone;//手机

	/**
	 * @备注:
	 * @字段:gmt_datetime DATETIME(19)
	 */
	@Column(updatable = false, columnDefinition="DATETIME(19) COMMENT ''")
	@JsonSerialize(using=DateJsonSerializer.class)
	@JsonDeserialize(using=DateJsonDeserializer.class)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
	private java.util.Date gmtDatetime = new java.util.Date();

	/**
	 * @备注:
	 * @字段:upt_datetime DATETIME(19)
	 */
	@Column(columnDefinition="DATETIME(19) COMMENT ''")
	@JsonSerialize(using=DateJsonSerializer.class)
	@JsonDeserialize(using=DateJsonDeserializer.class)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
	private java.util.Date uptDatetime = new java.util.Date();

	public WebUsersubmit(){
	}

	public WebUsersubmit(
		Long id
	){
		this.id = id;
	}



	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return this.id;
	}


	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getRealName() {
		return this.realName;
	}


	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getNickName() {
		return this.nickName;
	}


	public void setProvince(String province) {
		this.province = province;
	}

	public String getProvince() {
		return this.province;
	}


	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public void setCounty(String county) {
		this.county = county;
	}

	public String getCounty() {
		return this.county;
	}


	public void setAddressDetail(String addressDetail) {
		this.addressDetail = addressDetail;
	}

	public String getAddressDetail() {
		return this.addressDetail;
	}


	public void setRideType(String rideType) {
		this.rideType = rideType;
	}

	public String getRideType() {
		return this.rideType;
	}


	public void setUserType(Integer userType) {
		this.userType = userType;
	}

	public Integer getUserType() {
		return this.userType;
	}


	public void setGmtDatetime(java.util.Date gmtDatetime) {
		this.gmtDatetime = gmtDatetime;
	}

	public java.util.Date getGmtDatetime() {
		return this.gmtDatetime;
	}


	public void setUptDatetime(java.util.Date uptDatetime) {
		this.uptDatetime = uptDatetime;
	}

	public java.util.Date getUptDatetime() {
		return this.uptDatetime;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
}
